using System.Collections.Generic;

namespace Book.Blog.Core.DTOs
{
    public class EmailMessageDTO
    {
        public required string To { get; set; }
        public string? Subject { get; set; }
        public required string Body { get; set; }
        public bool IsHtml { get; set; } = true;
        public List<EmailAttachmentDTO>? Attachments { get; set; }
    }

    public class EmailAttachmentDTO
    {
        public required string FileName { get; set; }
        public required byte[] Content { get; set; }
        public string? ContentType { get; set; }
    }

    public class EmailConfigurationDTO
    {
        public required string SmtpServer { get; set; }
        public int Port { get; set; }
        public required string Username { get; set; }
        public required string Password { get; set; }
        public bool EnableSsl { get; set; }
        public string? FromAddress { get; set; }
        public string? FromName { get; set; }
    }
} 